import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class LiczbaTest4 {

	@Test
	public void test1() {
		fail("Not yet implemented");
	}
	Liczba lt;


	@Before
	public void setUp() throws Exception {
		lt = new Liczba("A",16);
		
	}

	@Test
	public void test() throws LiczbaException{
		int ts=10;
		assertEquals(ts,lt.zapis(10));
	
	}
	
	@Test(timeout=10000)
	
	public void testI() throws LiczbaException{
		int ts=10;
		assertEquals(ts,lt.zapis(10));
	}
	
	@Test(expected = LiczbaException.class)
	public void testII() throws LiczbaException{
		int ts=10;
		lt.zapis(100);
	}
	

	
	@After
	public void tearDown(){
		lt = null;
	}

}


